package com.tongcao.cn.algorithm.designMoel.obsever;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author:tongcao
 * @Date:2019/4/11 15:17
 * Description:
 */
@Slf4j
public class MockUser1 implements Observer {

    public MockUser1(Subject subject) {
        subject.registerObserver(this);
    }

    @Override
    public void update(String msg) {
        System.out.println("-----MockUser1  得到 3D 号码:" + msg + ", 我要记下来。 ");

    }
}